<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
        <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
            <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
                <jsp:useBean id="now" class="java.util.Date" />
                <%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
	long port=request.getServerPort();
	if(port==80){
		basePath = request.getScheme()+"://"+request.getServerName()+path+"/";
	}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>
    <base href="<%=basePath%>">
    <title>${param.tx_time}</title>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta name="renderer" content="webkit" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="keywords" content="云净,病案库,肾科病案库" />
    <meta http-equiv="description" content="云净透析单" />
    <link href="image/yunjing/logo.ico" type="image/x-icon" rel="shortcut icon">
    <style type="text/css">
        * {
            padding: 0px;
            margin: 0px;
            font-family: "Microsoft YaHei", 微软雅黑, "MicrosoftJhengHei", 华文细黑, STHeiti, MingLiu
        }

        .title-div {
            padding: 0px;
            text-align: center;
            font-size: 20px;
            border: 1px solid #666;
            letter-spacing: 10px;
        }

        .under-line {
            border-bottom: 1px solid #999;
            width: 95%;
            text-align: center;
            margin-left: 2px;
        }

        .print-table td {
            word-wrap: break-word;
            word-break: break-all;
        }

        .print-table {
            width: 100%;
            text-align: center;
            border-collapse: collapse;
            line-height: 35px;
        }

        .line-table {
            margin-top: 10px;
            width: 100%;
            line-height: 20px;
        }

        .line-table td {
            text-align: left;
        }

        .context-div {
            border: 1px solid #666;
        }

        .print-table-1 td {
            word-wrap: break-word;
            word-break: break-all;
            line-height: 22px;
            padding: 5px 0px 5px 0px;
        }

        .print-table-1 {
            width: 100%;
            text-align: center;
            border-collapse: collapse;
        }
        /***打印样式 ***/

        @media print {
            hr {
                page-break-after: always;
            }
        }
    </style>

    <body>
        <c:forEach items="${list}" var="list" varStatus="status">
            <div id="context-${status.index}" style="width:960px;margin:auto;border:0px solid red;">
                <div id="div-${status.index}" style="width:100%;border:0px solid green">
                    <div id="title-${status.index}">
                        <div class="title" style="margin:auto;font-weight:600;text-align:center;font-size:28px;padding:20px;">${hos_name}&nbsp;血液净化治疗记录单</div>
                        <table class="info-table line-table">
                            <tr>
                                <td width="35">姓名</td>
                                <td width="80">
                                    <div class="under-line">&nbsp;${list.hzda.tx_name}</div>
                                </td>
                                <td width="35">性别</td>
                                <td width="45">
                                    <div class="under-line">&nbsp;
                                        <c:choose>
                                            <c:when test="${list.hzda.tx_sex=='M'}">男</c:when>
                                            <c:otherwise>女</c:otherwise>
                                        </c:choose>
                                    </div>
                                </td>
                                <td width="35">年龄</td>
                                <td width="35">
                                    <div class="under-line">&nbsp;${list.hzda.tx_age}</div>
                                </td>
                                <td width="50">透析号</td>
                                <td width="90">
                                    <div class="under-line">&nbsp;${list.hzda.tx_number}</div>
                                </td>
                                <td width="35">门诊</td>
                                <td width="40">
                                    <div class="under-line">&nbsp;
                                        <c:choose>
                                            <c:when test="${list.hzda.tx_zyid==null||list.hzda.tx_zyid==''}">
                                                <input type="checkbox" class="" name="tx_ismenzhen" checked="checked" value="" readonly="readonly" />
                                            </c:when>
                                            <c:when test="${list.hzda.tx_mzid==null||list.hzda.tx_mzid==''}">
                                                <input type="checkbox" class="" name="tx_ismenzhen" value="" readonly="readonly" />
                                            </c:when>
                                        </c:choose>
                                    </div>
                                </td>
                                <td width="35">病区</td>
                                <td width="70">
                                    <div class="under-line">&nbsp;
                                        <c:choose>
                                            <c:when test="${list.hzda.tx_zyid==null||list.hzda.tx_zyid==''}">/</c:when>
                                            <c:when test="${list.hzda.tx_mzid==null||list.hzda.tx_mzid==''}"> ${list.hzda.tx_bing_qu}</c:when>
                                        </c:choose>
                                    </div>
                                </td>
                                <td width="35">床号</td>
                                <td width="50">
                                    <div class="under-line">&nbsp;
                                        <c:choose>
                                            <c:when test="${list.hzda.tx_zyid==null||list.hzda.tx_zyid==''}">/</c:when>
                                            <c:when test="${list.hzda.tx_mzid==null||list.hzda.tx_mzid==''}">${list.hzda.tx_bed_number}</c:when>
                                        </c:choose>
                                    </div>
                                </td>
                                <td width="65">透析次数</td>
                                <td width="40">
                                    <div class="under-line">&nbsp;${list.hzda.tx_yiTouXiCiShu}</div>
                                </td>
                                <td width="35">日期</td>
                                <td width="120">
                                    <div class="under-line">&nbsp;
                                        <span>${param.tx_time}</span>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="tx-before-div context-div" style="margin-top:5px;">
                        <table class="print-table" border="1">
                            <tbody>
                                <tr>
                                    <td width="50%" class="title-div">透析前评估</td>
                                    <td class="title-div">透析后评估</td>
                                </tr>
                                <tr>
                                    <td style="padding-bottom:15px;">
                                        <table class="line-table">
                                            <tr>
                                                <td width="15">T</td>
                                                <td width="40">
                                                    <div class="under-line">&nbsp;${list.txpgq.tx_pg_t}</div>
                                                </td>
                                                <td width="30">℃</td>
                                                <td width="15">P</td>
                                                <td width="40">
                                                    <div class="under-line">&nbsp;${list.txpgq.tx_pg_p}</div>
                                                </td>
                                                <td width="50">次/分</td>
                                                <td width="15">R</td>
                                                <td width="40">
                                                    <div class="under-line">&nbsp;${list.txpgq.tx_pg_hr}</div>
                                                </td>
                                                <td width="50">次/分</td>
                                                <td width="20">BP</td>
                                                <td width="80">
                                                    <div class="under-line">&nbsp;${list.txpgq.tx_pg_BP_shousuo}/${list.txpgq.tx_pg_BP_shuzhang}</div>
                                                </td>
                                                <td width="">mmHg</td>
                                            </tr>
                                        </table>
                                        <table class="print-table">
                                            <tr>
                                                <td width="55%">
                                                    <table class="line-table">
                                                        <tr>
                                                            <td width="80">透析间期：</td>
                                                            <td>
                                                                <div class="under-line">&nbsp;${list.txpgq.txqj_name}</div>
                                                            </td>
                                                            <td width="20"></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td>
                                                    <table class="line-table">
                                                        <tr>
                                                            <td width="80">透前症状：</td>
                                                            <td>
                                                                <div class="under-line">&nbsp;${list.txpgq.tqzz_name}</div>
                                                            </td>
                                                            <td width="20"></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table class="line-table">
                                                        <tr>
                                                            <td width="50">内瘘：</td>
                                                            <td>
                                                                <div class="under-line">&nbsp;${list.txpgq.nl_name}</div>
                                                            </td>
                                                            <td width="20"></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td>
                                                    <table class="line-table">
                                                        <tr>
                                                            <td width="50">导管：</td>
                                                            <td>
                                                                <div class="under-line">&nbsp;${list.txpgq.dg_name}</div>
                                                            </td>
                                                            <td width="20"></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table class="line-table">
                                                        <tr>
                                                            <td width="65">合并症：</td>
                                                            <td>
                                                                <div class="under-line">&nbsp;${list.txpgq.hbz_name}</div>
                                                            </td>
                                                            <td width="20"></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td>
                                                    <table class="line-table">
                                                        <tr>
                                                            <td width="80">跌倒评估：</td>
                                                            <td>
                                                                <div class="under-line">${list.hzda.tx_ddpg}</div>
                                                            </td>
                                                            <td width="20"></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table class="line-table">
                                                        <tr>
                                                            <td width="65">干体重：</td>
                                                            <td width="60">
                                                                <div class="under-line">&nbsp;${list.txpgq.tx_gtz}</div>
                                                            </td>
                                                            <td>kg</td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td>
                                                    <table class="line-table">
                                                        <tr>
                                                            <td width="80">透前体重：</td>
                                                            <td width="60">
                                                                <div class="under-line">&nbsp;
                                                                    <c:choose>
                                                                        <c:when test="${list.txpgq.tx_tqtz=='-1'}">卧床</c:when>
                                                                        <c:otherwise>${list.txpgq.tx_tqtz}</c:otherwise>
                                                                    </c:choose>
                                                                </div>
                                                            </td>
                                                            <td>kg</td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table class="line-table">
                                                        <tr>
                                                            <td width="80">体重增加：</td>
                                                            <td width="60">
                                                                <div class="under-line">&nbsp;
                                                                    <c:choose>
                                                                        <c:when test="${list.txpgq.tx_tqtz=='-1'||list.txpgq.tx_qctxhtz=='/'||list.txpgq.tx_qctxhtz=='不祥'||list.txpgq.tx_qctxhtz=='不详'}">/</c:when>
                                                                        <c:otherwise>${list.txpgq.tx_tzzj}</c:otherwise>
                                                                    </c:choose>
                                                                </div>
                                                            </td>
                                                            <td>kg</td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td>
                                                    <table class="line-table">
                                                        <tr>
                                                            <td width="100">预增脱水量：</td>
                                                            <td width="60">
                                                                <div class="under-line">&nbsp;${list.txpgq.tx_yztsl}</div>
                                                            </td>
                                                            <td>L</td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td style="padding-bottom:15px;">
                                        <table class="line-table">
                                            <tr>
                                                <td width="15">T</td>
                                                <td width="40">
                                                    <div class="under-line">&nbsp;${list.txpgh.tx_pg_t}</div>
                                                </td>
                                                <td width="30">℃</td>
                                                <td width="15">P</td>
                                                <td width="40">
                                                    <div class="under-line">&nbsp;${list.txpgh.tx_pg_p}</div>
                                                </td>
                                                <td width="50">次/分</td>
                                                <td width="15">R</td>
                                                <td width="40">
                                                    <div class="under-line">&nbsp;${list.txpgh.tx_pg_hr}</div>
                                                </td>
                                                <td width="50">次/分</td>
                                                <td width="20">BP</td>
                                                <td width="80">
                                                    <div class="under-line">&nbsp;${list.txpgh.tx_pg_BP_shousuo}/${list.txpgh.tx_pg_BP_shuzhang}</div>
                                                </td>
                                                <td width="">mmHg</td>
                                            </tr>
                                        </table>
                                        <table class="print-table">
                                            <tr>
                                                <td width="50%">
                                                    <table class="line-table">
                                                        <tr>
                                                            <td width="50">凝血：</td>
                                                            <td>
                                                                <div class="under-line">&nbsp;${list.txpgh.txh_nx_name}</div>
                                                            </td>
                                                            <td width="20"></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td>
                                                    <table class="line-table">
                                                        <tr>
                                                            <td width="80">透后症状：</td>
                                                            <td>
                                                                <div class="under-line">&nbsp;${list.txpgh.txh_tqzz_name}</div>
                                                            </td>
                                                            <td width="20"></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table class="line-table">
                                                        <tr>
                                                            <td width="50">内瘘：</td>
                                                            <td>
                                                                <div class="under-line">&nbsp;${list.txpgh.txh_nl_name}</div>
                                                            </td>
                                                            <td width="20"></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td>
                                                    <table class="line-table">
                                                        <tr>
                                                            <td width="50">导管：</td>
                                                            <td>
                                                                <div class="under-line">&nbsp;${list.txpgh.txh_dg_name}</div>
                                                            </td>
                                                            <td width="20"></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table class="line-table">
                                                        <tr>
                                                            <td width="65">并发症：</td>
                                                            <td>
                                                                <div class="under-line">&nbsp;${list.txpgh.txh_hbz_name}</div>
                                                            </td>
                                                            <td width="20"></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td>
                                                    <table class="line-table">
                                                        <tr>
                                                            <td width="80">机器运行：</td>
                                                            <td>
                                                                <div class="under-line">正常</div>
                                                            </td>
                                                            <td width="20"></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table class="line-table">
                                                        <tr>
                                                            <td width="100">实际超滤量：</td>
                                                            <td width="60">
                                                                <div class="under-line">&nbsp;${list.txpgh.txh_sjcll}</div>
                                                            </td>
                                                            <td>ml</td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td>
                                                    <table class="line-table">
                                                        <tr>
                                                            <td width="80">透后体重：</td>
                                                            <td width="60">
                                                                <div class="under-line">&nbsp;
                                                                    <c:choose>
                                                                        <c:when test="${list.txpgh.txh_tz=='-1'}">卧床</c:when>
                                                                        <c:otherwise>${list.txpgh.txh_tz}</c:otherwise>
                                                                    </c:choose>
                                                                </div>
                                                            </td>
                                                            <td>kg</td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table class="line-table">
                                                        <tr>
                                                            <td width="80">体重减少：</td>
                                                            <td width="60">
                                                                <div class="under-line">&nbsp;
                                                                    <c:choose>
                                                                        <c:when test="${list.txpgh.txh_tz=='-1'||list.txpgq.tx_tqtz=='-1'}">/</c:when>
                                                                        <c:when test="${empty list.txpgh.txh_tz||empty list.txpgq.tx_tqtz}"></c:when>
                                                                        <c:otherwise>${list.txpgh.txh_tzjs}</c:otherwise>
                                                                    </c:choose>
                                                                </div>
                                                            </td>
                                                            <td>kg</td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td>
                                                    <table class="line-table">
                                                        <tr>
                                                            <td width="100">实际置换量：</td>
                                                            <td width="60">
                                                                <div class="under-line">&nbsp;
                                                                    <c:choose>
                                                                        <c:when test="${list.txcf.tx_txfs_id=='HD'||list.txcf.tx_txfs_id=='HD+HP'||list.txcf.tx_txfs_id=='HP'||list.txcf.tx_txfs_id=='HFHD'}">/</c:when>
                                                                        <c:otherwise>${list.txpgh.txh_sjzhl}</c:otherwise>
                                                                    </c:choose>
                                                                </div>
                                                            </td>
                                                            <td>L</td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <div class="txcf-div context-div" style="border-width:0px">
                            <div class="title-div" style="border-width:0px 1px 0px 1px;padding:8px 0px 8px 0px">透析处方</div>
                            <div style="border:1px solid #333">
                                <table class="line-table">
                                    <tr>
                                        <td width="100">处方脱水量：</td>
                                        <td width="40">
                                            <div class="under-line">&nbsp;${list.txcf.tx_jcll}</div>
                                        </td>
                                        <td width="">L</td>
                                        <td width="80">超滤总量：</td>
                                        <td width="40">
                                            <div class="under-line">&nbsp;${list.txpgq.tx_clzl}</div>
                                        </td>
                                        <td width="">L</td>
                                        <td width="80">透析时长：</td>
                                        <td width="40">
                                            <div class="under-line">&nbsp;${list.txcf.tx_zlsc}</div>
                                        </td>
                                        <td width="">h</td>
                                        <td width="80">透析方式：</td>
                                        <td width="70">
                                            <div class="under-line">&nbsp;${list.txcf.tx_txfs_id}</div>
                                        </td>
                                        <td width="">&nbsp;</td>
                                        <td width="80">置换方式：</td>
                                        <td width="80">
                                            <div class="under-line">&nbsp;
                                                <c:choose>
                                                    <c:when test="${list.txcf.tx_txfs_id=='HD'||list.txcf.tx_txfs_id=='HD+HP'||list.txcf.tx_txfs_id=='HP'||list.txcf.tx_txfs_id=='SCUF'||list.txcf.tx_txfs_id=='IUF'||list.txcf.tx_txfs_id=='HFHD'||list.txcf.tx_txfs_id=='HFHD+HP'||list.txcf.tx_txfs_id=='HFR'}">/</c:when>
                                                    <c:otherwise>${list.txcf.tx_zhfs}</c:otherwise>
                                                </c:choose>
                                            </div>
                                        </td>
                                        <td width="">&nbsp;</td>
                                        <td width="100">置换总量：</td>
                                        <td width="40">
                                            <div class="under-line">&nbsp;
                                                <c:choose>
                                                    <c:when test="${list.txcf.tx_txfs_id=='HD'||list.txcf.tx_txfs_id=='HD+HP'||list.txcf.tx_txfs_id=='HP'||list.txcf.tx_txfs_id=='SCUF'||list.txcf.tx_txfs_id=='IUF'||list.txcf.tx_txfs_id=='HFHD'||list.txcf.tx_txfs_id=='HFHD+HP'}">/</c:when>
                                                    <c:otherwise>${list.txcf.tx_zhzl}</c:otherwise>
                                                </c:choose>
                                            </div>
                                        </td>
                                        <td width="30">L</td>
                                    </tr>
                                </table>
                                <table class="line-table">
                                    <tr>
                                        <td width="80">血管通路：</td>
                                        <td width="500">
                                            <div class="under-line">${list.txcf.tx_xgtlbw_id}&nbsp;${list.txcf.tx_xgtl_id}</div>
                                        </td>
                                        <td width=""></td>
                                        <td width="65">血流量：</td>
                                        <td width="50">
                                            <div class="under-line">&nbsp;${list.txcf.tx_xll}</div>
                                        </td>
                                        <td width="80">ml/min</td>
                                        <td width=""></td>
                                    </tr>
                                </table>
                                <table class="line-table">
                                    <tr>
                                        <td width="100">人工肾装置：</td>
                                        <td width="150">
                                            <div class="under-line">&nbsp;
                                                <c:choose>
                                                    <c:when test="${list.txcf.tx_txfs_id=='HD'}">${list.txcf.tx_xtq_id}</c:when>
                                                    <c:when test="${list.txcf.tx_txfs_id=='HDF'}">${list.txcf.tx_xlq_id}</c:when>
                                                    <c:when test="${list.txcf.tx_txfs_id=='HD+HP'}">${list.txcf.tx_xtq_id}
                                                        <c:if test="${not empty list.txcf.tx_glq_id && not empty list.txcf.tx_xtq_id}">+</c:if>${list.txcf.tx_glq_id}</c:when>
                                                    <c:when test="${list.txcf.tx_txfs_id=='HP'}">${list.txcf.tx_glq_id}</c:when>
                                                    <c:when test="${list.txcf.tx_txfs_id=='HF'}">${list.txcf.tx_xlq_id}</c:when>
                                                    <c:when test="${list.txcf.tx_txfs_id=='SCUF'}">${list.txcf.tx_xtq_id}</c:when>
                                                    <c:when test="${list.txcf.tx_txfs_id=='IUF'}">${list.txcf.tx_xtq_id}</c:when>
                                                    <c:when test="${list.txcf.tx_txfs_id=='HFHD'}">${list.txcf.tx_xtq_id}</c:when>
                                                    <c:when test="${list.txcf.tx_txfs_id=='HFHD+HP'}">${list.txcf.tx_xtq_id}
                                                        <c:if test="${not empty list.txcf.tx_glq_id && not empty list.txcf.tx_xtq_id}">+</c:if>${list.txcf.tx_glq_id}</c:when>
                                                    <c:when test="${list.txcf.tx_txfs_id=='PHF'}">${list.txcf.tx_xlq_id}</c:when>
                                                    <c:when test="${list.txcf.tx_txfs_id=='HFR'}">${list.txcf.tx_glq_id}
                                                        <c:if test="${not empty list.txcf.tx_glq_id && not empty list.txcf.tx_xlq_id}">+</c:if>${list.txcf.tx_xlq_id}</c:when>
                                                </c:choose>
                                            </div>
                                        </td>
                                        <td width=""></td>
                                        <td width="65">膜面积：</td>
                                        <td width="90">
                                            <div class="under-line">&nbsp;${list.area}</div>
                                        </td>
                                        <td width="30">m²</td>
                                        <td width="65">膜材质：</td>
                                        <td width="90">
                                            <div class="under-line">&nbsp;${list.material}</div>
                                        </td>
                                        <td width=""></td>
                                        <td width="85">透析机型：</td>
                                        <td width="140">
                                            <div class="under-line">&nbsp;${list.tx_she_bei_xing_hao}</div>
                                        </td>
                                        <td width=""></td>
                                        <td width="50">机号：</td>
                                        <td width="50">
                                            <div class="under-line">&nbsp;${list.txcf.tx_txj_id}</div>
                                        </td>
                                        <td width="25"></td>
                                    </tr>
                                </table>
                                <table class="line-table">
                                    <!-- 抗凝剂打印切换规则 -->
                                    <c:choose>
                                        <c:when test="${list.txcf.tx_knj_id=='无肝素'}">
                                            <tr>
                                                <td width="50">抗凝剂</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;/</div>
                                                </td>
                                                <td width="">&nbsp;</td>
                                                <td width="35">首剂</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;/</div>
                                                </td>
                                                <td width="">mg</td>
                                                <td width="35">维持</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;/</div>
                                                </td>
                                                <td width="">mg</td>
                                                <td width="35">总量</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;/</div>
                                                </td>
                                                <td width="">mg</td>
                                            </tr>
                                        </c:when>

                                        <c:when test="${list.txcf.tx_knj_id=='普通肝素'}">
                                            <tr>
                                                <td width="50">抗凝剂</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;${list.txcf.tx_knj_id}</div>
                                                </td>
                                                <td width="">&nbsp;</td>
                                                <td width="35">首剂</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;${list.txcf.tx_sj}</div>
                                                </td>
                                                <td width="">mg</td>
                                                <td width="35">维持</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;${list.txcf.tx_weichi}</div>
                                                </td>
                                                <td width="">mg/h</td>
                                                <td width="35">总量</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;${list.txcf.tx_zl}</div>
                                                </td>
                                                <td width="">mg</td>
                                            </tr>
                                        </c:when>

                                        <c:when test="${list.txcf.tx_knj_id=='低分子肝素'}">
                                            <tr>
                                                <td width="50">抗凝剂</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;${list.txcf.tx_knj_id}</div>
                                                </td>
                                                <td width="">&nbsp;</td>
                                                <td width="35">首剂</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;${list.txcf.tx_sj}</div>
                                                </td>
                                                <td width="">Iu</td>
                                                <td width="35">维持</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;${list.txcf.tx_weichi}</div>
                                                </td>
                                                <td width="">Iu</td>
                                                <td width="35">总量</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;${list.txcf.tx_zl}</div>
                                                </td>
                                                <td width="">Iu</td>
                                            </tr>
                                        </c:when>

                                        <c:when test="${list.txcf.tx_knj_id=='阿加曲班'}">
                                            <tr>
                                                <td width="50">抗凝剂</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;${list.txcf.tx_knj_id}</div>
                                                </td>
                                                <td width="">&nbsp;</td>
                                                <td width="35">首剂</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;${list.txcf.tx_sj}</div>
                                                </td>
                                                <td width="">ug</td>
                                                <td width="35">维持</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;${list.txcf.tx_weichi}</div>
                                                </td>
                                                <td width="">ug/h</td>
                                                <td width="35">总量</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;${list.txcf.tx_zl}</div>
                                                </td>
                                                <td width="">ug</td>
                                            </tr>
                                        </c:when>

                                        <c:when test="${list.txcf.tx_knj_id=='拘橼酸钠'}">
                                            <tr>
                                                <td width="50">抗凝剂</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;${list.txcf.tx_knj_id}</div>
                                                </td>
                                                <td width="">&nbsp;</td>
                                                <td width="35">维持</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;${list.txcf.tx_weichi}</div>
                                                </td>
                                                <td width="">ml/h</td>
                                                <td width="50">钙名称</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;${list.txcf.tx_gai_mingcheng}</div>
                                                </td>
                                                <td width=""></td>
                                                <td width="35">剂量</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;${list.txcf.tx_gai_jiliang}</div>
                                                </td>
                                                <td width="">ml/h</td>
                                            </tr>
                                        </c:when>

                                        <c:otherwise>
                                            <tr>
                                                <td width="50">抗凝剂</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;${list.txcf.tx_knj_id}</div>
                                                </td>
                                                <td width="">&nbsp;</td>
                                                <td width="35">首剂</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;${list.txcf.tx_sj}</div>
                                                </td>
                                                <td width="">Iu</td>
                                                <td width="35">维持</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;${list.txcf.tx_weichi}</div>
                                                </td>
                                                <td width="">Iu</td>
                                                <td width="35">总量</td>
                                                <td width="">
                                                    <div class="under-line">&nbsp;${list.txcf.tx_zl}</div>
                                                </td>
                                                <td width="">Iu</td>
                                            </tr>
                                        </c:otherwise>
                                    </c:choose>
                                </table>
                                <table class="line-table">
                                    <tr>
                                        <td width="100">透析液配方：</td>
                                        <td width="18">钾</td>
                                        <td width="">
                                            <div class="under-line">&nbsp;
                                                <c:choose>
                                                    <c:when test="${list.txcf.tx_txfs_id=='HP'||list.txcf.tx_txfs_id=='SCUF'||list.txcf.tx_txfs_id=='IUF'}">/</c:when>
                                                    <c:otherwise>${list.txcf.tx_txycf_jia}</c:otherwise>
                                                </c:choose>
                                            </div>
                                        </td>
                                        <td width="70">mmol/L</td>

                                        <td width="18">钠</td>
                                        <td width="">
                                            <div class="under-line">&nbsp;
                                                <c:choose>
                                                    <c:when test="${list.txcf.tx_txfs_id=='HP'||list.txcf.tx_txfs_id=='SCUF'||list.txcf.tx_txfs_id=='IUF'}">/</c:when>
                                                    <c:otherwise>${list.txcf.tx_txycf_na}</c:otherwise>
                                                </c:choose>
                                            </div>
                                        </td>
                                        <td width="70">mmol/L</td>

                                        <td width="18">钙</td>
                                        <td width="">
                                            <div class="under-line">&nbsp;
                                                <c:choose>
                                                    <c:when test="${list.txcf.tx_txfs_id=='HP'||list.txcf.tx_txfs_id=='SCUF'||list.txcf.tx_txfs_id=='IUF'}">/</c:when>
                                                    <c:otherwise>${list.txcf.tx_txycf_gai}</c:otherwise>
                                                </c:choose>
                                            </div>
                                        </td>
                                        <td width="70">mmol/L</td>

                                        <td width="65">碳酸氢根</td>
                                        <td width="75">
                                            <div class="under-line">&nbsp;
                                                <c:choose>
                                                    <c:when test="${list.txcf.tx_txfs_id=='HP'||list.txcf.tx_txfs_id=='SCUF'||list.txcf.tx_txfs_id=='IUF'}">/</c:when>
                                                    <c:otherwise>${list.txcf.tx_txycf_tsqg}</c:otherwise>
                                                </c:choose>
                                            </div>
                                        </td>
                                        <td width="70">mmol/L</td>

                                        <td width="35">流量</td>
                                        <td width="50">
                                            <div class="under-line">&nbsp;
                                                <c:choose>
                                                    <c:when test="${list.txcf.tx_txfs_id=='HP'||list.txcf.tx_txfs_id=='SCUF'||list.txcf.tx_txfs_id=='IUF'||list.txcf.tx_txfs_id=='HF'}">/</c:when>
                                                    <c:otherwise>${list.txcf.tx_txyll}</c:otherwise>
                                                </c:choose>
                                            </div>
                                        </td>
                                        <td width="80">ml/min</td>
                                    </tr>
                                </table>
                                <table class="line-table">
                                    <tr>

                                    </tr>
                                </table>
                            </div>
                        </div>
                        <div class="lsyz-div context-div" style="border-width:0px">
                            <div class="title-div" style="border-width:0px 1px 0px 1px;padding:8px 0px 8px 0px">临时医嘱</div>
                            <table id="yz-table-${status.index}" class="print-table-1" style="height:100%" border="1" size="${list.lsyzlist.size()}">
                                <thead></thead>
                                <tbody>
                                    <tr>
                                        <td width="100">时间</td>
                                        <td>医嘱内容</td>
                                        <td width="70">医生签名</td>
                                        <td width="70">执行时间</td>
                                        <td width="70">执行护士</td>
                                    </tr>
                                    <c:choose>
                                        <c:when test="${list.lsyzlist!=null&&list.lsyzlist.size()>0}">
                                            <c:forEach items="${list.lsyzlist}" var="lsyz" varStatus="i">
                                                <tr>
                                                    <td>${lsyz.tx_lsyz_kssj}</td>
                                                    <td align="left">${lsyz.tx_lsyz_yzcontent}</td>
                                                    <td>${lsyz.tx_lsyz_kz_doctor}</td>
                                                    <td>${lsyz.tx_lsyz_zxsj}</td>
                                                    <td>${lsyz.tx_lsyz_qm_nurse}</td>
                                                </tr>
                                            </c:forEach>
                                        </c:when>
                                        <c:otherwise>
                                            <tr>
                                                <td>&nbsp;</td>
                                                <td> </td>
                                                <td></td>
                                                <td> </td>
                                                <td></td>
                                            </tr>
                                            <tr>
                                                <td>&nbsp; </td>
                                                <td> </td>
                                                <td></td>
                                                <td> </td>
                                                <td></td>
                                            </tr>
                                            <tr>
                                                <td>&nbsp; </td>
                                                <td> </td>
                                                <td></td>
                                                <td> </td>
                                                <td></td>
                                            </tr>
                                            <tr>
                                                <td>&nbsp; </td>
                                                <td> </td>
                                                <td></td>
                                                <td> </td>
                                                <td></td>
                                            </tr>
                                        </c:otherwise>
                                    </c:choose>
                                    <c:choose>
                                        <c:when test="${list.lsyzlist!=null&&list.lsyzlist.size()>0&&list.lsyzlist.size()<4}">
                                            <c:forEach begin="1" end="${4-list.lsyzlist.size()}" step="1">
                                                <tr>
                                                    <td>&nbsp;</td>
                                                    <td> </td>
                                                    <td></td>
                                                    <td> </td>
                                                    <td></td>
                                                </tr>
                                            </c:forEach>
                                        </c:when>
                                    </c:choose>
                                </tbody>
                            </table>
                        </div>
                        <div class="zljl-div context-div" style="border-width:0px">
                            <div class="title-div" style="border-width:0px 1px 0px 1px;padding:8px 0px 8px 0px">监测记录</div>
                            <table id="jc-table-${status.index}" class="print-table-1" border="1">
                                <tbody>
                                    <tr>
                                        <td width="75">时间</td>
                                        <td width="50">血流量
                                            <font size="2">（ml/min）</font>
                                        </td>
                                        <td width="100">静脉压
                                            <font size="2">（mmHg）</font>/跨膜压
                                            <font size="2">（mmHg）</font>
                                        </td>
                                        <td width="100">超滤率
                                            <font size="2">（ml/h）</font>/超滤量
                                            <font size="2">（ml）</font>
                                        </td>
                                        <td width="90">置换率
                                            <font size="2">（ml/min）</font>/置换量
                                            <font size="2">（L）</font>
                                        </td>
                                        <td width="70">钠浓度
                                            <font size="2">mmol/l温度℃</font>
                                        </td>
                                        <td width="40" style="word-break:normal;">脉搏
                                            <font size="2">（次/分）</font>
                                        </td>
                                        <td width="40" style="word-break:normal;">呼吸
                                            <font size="2">（次/分）</font>
                                        </td>
                                        <td width="60" style="word-break:normal;">血压
                                            <font size="2">（mmHg）</font>
                                        </td>
                                        <td width="" style="min-width:45px;">症状</td>
                                        <td width="" style="min-width:45px;">处理</td>
                                        <td width="" style="min-width:45px;">结果</td>
                                    </tr>
                                    <c:choose>
                                        <c:when test="${list.jcjllist!=null&&list.jcjllist.size()>0}">
                                            <c:forEach items="${list.jcjllist}" var="jcjl" varStatus="status">
                                                <tr>
                                                    <td>${jcjl.tx_jcjl_time}</td>
                                                    <td>${jcjl.tx_jcjl_xll}</td>
                                                    <td>
                                                        <c:choose>
                                                            <c:when test="${(jcjl.tx_jcjl_my==null||jcjl.tx_jcjl_my=='')&&(jcjl.tx_jcjl_kmy==null||jcjl.tx_jcjl_kmy=='')}">&nbsp;</c:when>
                                                            <c:otherwise>${jcjl.tx_jcjl_my}/${jcjl.tx_jcjl_kmy}</c:otherwise>
                                                        </c:choose>
                                                    </td>
                                                    <td>
                                                        <c:choose>
                                                            <c:when test="${(jcjl.tx_jcjl_cll==null||jcjl.tx_jcjl_cll=='')&&(jcjl.tx_jcjl_clliang==null||jcjl.tx_jcjl_clliang=='')}">&nbsp;</c:when>
                                                            <c:otherwise>${jcjl.tx_jcjl_cll}/${jcjl.tx_jcjl_clliang}</c:otherwise>
                                                        </c:choose>
                                                    </td>
                                                    <td>
                                                        <c:choose>
                                                            <c:when test="${(jcjl.tx_jcjl_zhl==null||jcjl.tx_jcjl_zhl=='')&&(jcjl.tx_jcjl_zhliang==null||jcjl.tx_jcjl_zhliang=='')}">&nbsp;</c:when>
                                                            <c:when test="${(jcjl.tx_jcjl_zhl=='/')&&(jcjl.tx_jcjl_zhliang=='/')}">/</c:when>
                                                            <c:otherwise>${jcjl.tx_jcjl_zhl}/${jcjl.tx_jcjl_zhliang}</c:otherwise>
                                                        </c:choose>
                                                    </td>
                                                    <td>
                                                        <c:choose>
                                                            <c:when test="${(jcjl.tx_jcjl_nnd==null||jcjl.tx_jcjl_nnd=='')&&(jcjl.tx_jcjl_txywd==null||jcjl.tx_jcjl_txywd=='')}">&nbsp;</c:when>
                                                            <c:otherwise>${jcjl.tx_jcjl_nnd}/${jcjl.tx_jcjl_txywd}</c:otherwise>
                                                        </c:choose>
                                                    </td>
                                                    <td>${jcjl.tx_jcjl_mb}</td>
                                                    <td>${jcjl.tx_jcjl_hx}</td>
                                                    <td>
                                                        <c:choose>
                                                            <c:when test="${(jcjl.tx_jcjl_xy==null||jcjl.tx_jcjl_xy=='')&&(jcjl.tx_jcjl_xy1==null||jcjl.tx_jcjl_xy1=='')}">&nbsp;</c:when>
                                                            <c:otherwise>${jcjl.tx_jcjl_xy}/${jcjl.tx_jcjl_xy1}</c:otherwise>
                                                        </c:choose>
                                                    </td>
                                                    <td style="min-width:45px;">${jcjl.tx_jcjl_zz}</td>
                                                    <td style="min-width:45px;">
                                                        <c:if test="${jcjl.tx_flag=='0'}">【开始透析】</c:if>
                                                        <c:if test="${jcjl.tx_flag=='1'}">【结束透析】</c:if>
                                                        ${jcjl.tx_jcjl_cl}
                                                    </td>
                                                    <td style="min-width:45px;">${jcjl.tx_jcjl_jg}</td>
                                                </tr>
                                            </c:forEach>
                                        </c:when>
                                        <c:otherwise>
                                            <tr>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                            </tr>

                                        </c:otherwise>
                                    </c:choose>
                                </tbody>
                            </table>
                        </div>
                        <div class="tx-after-div context-div" style="border-width:0px 1px 1px 1px">
                            <div class="title-div" style="border-width:0px 0px 1px 0px;padding:8px 0px 8px 0px">治疗小结</div>
                            <div style="width:98%;margin:auto;">
                                <table class="line-table">
                                    <tr>
                                        <td width="115">实际治疗时间：</td>
                                        <td width="50">
                                            <div class="under-line">&nbsp;${list.txpgh.txh_sjsc_h}</div>
                                        </td>
                                        <td width="10">h</td>
                                        <td width="50">
                                            <div class="under-line">&nbsp;${list.txpgh.txh_sjsc_f}</div>
                                        </td>
                                        <td width="100">min</td>
                                        <td width="75">透后宣教:</td>
                                        <td width="500">
                                            <div class="under-line" style="text-align:left;">&nbsp;${list.txzlxj.tx_zlxj_content}</div>
                                        </td>
                                        <td width=""></td>
                                    </tr>
                                </table>
                                <table class="line-table">
                                    <tr>
                                        <td width="70">治疗小结</td>
                                        <td width="">
                                            <div class="under-line" style="text-align:left;">&nbsp;${list.txzlxj.tx_zlxj_xj}</div>
                                        </td>
                                    </tr>
                                </table>
                                <div style="width:100%;border-top:1px solid black;margin-top:20px;padding-bottom:10px;">
                                    <table class="line-table">
                                        <tr>
                                            <td width="75">
                                                <c:choose>
                                                    <c:when test="${empty list.txpgq.tx_ccfs||empty list.txpgq.tx_ccz}">换药护士</c:when>
                                                    <c:otherwise>穿刺护士</c:otherwise>
                                                </c:choose>
                                            </td>
                                            <td width="90">
                                                <div class="under-line">&nbsp;${list.txzlxj.tx_sj_nurse}</div>
                                            </td>
                                            <td width=""></td>
                                            <td width="75">治疗护士</td>
                                            <td width="90">
                                                <div class="under-line">&nbsp;${list.txzlxj.tx_zl_nurse}</div>
                                            </td>
                                            <td width=""></td>
                                            <td width="75">核对护士</td>
                                            <td width="90">
                                                <div class="under-line">&nbsp;${list.txzlxj.tx_hd_nurse}</div>
                                            </td>
                                            <td width=""></td>
                                            <td width="75">下机护士</td>
                                            <td width="90">
                                                <div class="under-line">&nbsp;${list.txzlxj.tx_xj_nurse}</div>
                                            </td>
                                            <td width=""></td>
                                            <td width="75">治疗医生</td>
                                            <td width="90">
                                                <div class="under-line">&nbsp;${list.txzlxj.tx_zl_doctor}</div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <hr/>
        </c:forEach>
    </body>
    <style>
        a[title="站长统计"] {
            display: none;
        }
    </style>
    <script type="text/javascript" src="js/jquery/jquery-1.9.1.min.js"></script>
    <script src="https://s13.cnzz.com/z_stat.php?id=1263104855&web_id=1263104855" language="JavaScript"></script>
    <script>
        $(function () {
            setTable();
            window.print();
        });

        function setTable() {
            var size = '${fn:length(list)}';
            for (var j = 0; j < size; j++) {
                var $yztrs = [];
                var $jctrs = [];
                var $tr;
                var yzsize = $("#yz-table-" + j).attr("size");
                if (yzsize > 4) {
                    for (var i = 4; i < yzsize; i++) {
                        $tr = $("#yz-table-" + j).find("tr").last();
                        $yztrs.push($tr);
                        $tr.remove();
                    }
                }
                var divHeight = $("#div-" + j).outerHeight();
                //var yzHeight=$("#yz-table-"+j).outerHeight();
                //var jcHeight=$("#jc-table-"+j).outerHeight();
                var leaveHeight = 1380 - divHeight;
                var $context = $("#context-" + j);

                if (leaveHeight > 35) {
                    var trCount = parseInt(leaveHeight / 35);
                    for (var i = 0; i < trCount; i++) {
                        $("#jc-table-" + j).find("tbody").append($(
                            "<tr><td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td>  <td>&nbsp;</td>  <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td></tr> "
                        ));
                    }
                } else if (leaveHeight < 0) {
                    while (true) {
                        $tr = $("#jc-table-" + j).find("tr").last();
                        $jctrs.push($tr);
                        $tr.remove();
                        leaveHeight = 1380 - $("#div-" + j).outerHeight();
                        if (leaveHeight >= 0) {
                            break;
                        }
                    }
                }
                if ($yztrs.length > 0 || $jctrs.length > 0) {
                    $context.append($("<hr/>"));
                    var $title = $("#title-" + j).clone();
                    $title.find(".title").text($title.find(".title").text() + "(续)");
                    $title.css("padding-bottom", "5px");
                    $context.append($title);
                }
                if ($yztrs.length > 0) {
                    var $div = $("#div-" + j).find(".lsyz-div");
                    $div.css("border-width", "1px 0px 0px 0px");
                    var $yzdiv = $div.clone();
                    var $trs = $yzdiv.find("table tr");
                    for (var i = 0; i < $trs.length; i++) {
                        if (i != 0) {
                            $trs.eq(i).remove();
                        }
                    }
                    for (var i = $yztrs.length; i >= 0; i--) {
                        $yzdiv.find("table tbody").append($yztrs[i]);
                    }
                    $context.append($yzdiv);
                }
                if ($jctrs.length > 0) {
                    var $div = $("#div-" + j).find(".zljl-div");
                    $div.css("border-width", "1px 0px 0px 0px");
                    var $jcdiv = $div.clone();
                    var $trs = $jcdiv.find("table tr");
                    for (var i = 0; i < $trs.length; i++) {
                        if (i != 0) {
                            $trs.eq(i).remove();
                        }
                    }
                    for (var i = $jctrs.length; i >= 0; i--) {
                        $jcdiv.find("table tbody").append($jctrs[i]);
                    }
                    $context.append($jcdiv);
                }
                //alert(divHeight+":"+yzHeight+":"+jcHeight);
            }
        }
    </script>

</html>